class WeatherItem {
  late String cap;
  late String temp;
  late String aqi;
  late String aqi_name;
  late String icon;
  WeatherItem(Map<String, dynamic> json) {
    this.cap = json["cap"] as String;
    this.temp = '${json["temp"]}';
    this.aqi = '${json["aqi"]}';
    this.aqi_name = json["aqi_name"] as String;
    this.icon = json["icon"] as String;
  }
  Map<String, dynamic> get json {
    var result = Map<String, dynamic>();
    result["cap"] = this.cap;
    result["temp"] = this.temp;
    result["aqi"] = this.aqi;
    result["aqi_name"] = this.aqi_name;
    result["icon"] = this.icon;
    return result;
  }
}
